<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>首页</title>
    <tc_include file="Public:head" />
    <link rel="stylesheet" href="__TMPL__Public/invest/css/flexslider.css">
    <link rel="stylesheet" href="__TMPL__Public/invest/css/index.css">
</head>

<body style="overflow:-Scroll;overflow-x:hidden">
<nav class="navbar navbar-default" role="navigation">
    <tc_include file="Public:nav" />
</nav>
<!--轮播器-->
<div class="container-fluid none1" id="home">
    <div class="row">
        <div class="col col-md-12 fa-1">
            <div class="flexslider">
                <ul class="slides">
                    <li>
                        <a href="#"><img src="__TMPL__Public/invest/images/1.png" /></a>
                    </li>
                    <li>
                        <a href="#"><img src="__TMPL__Public/invest/images/2.jpg" alt="2"/></a>
                    </li>
                    <li>
                        <a href="#"><img src="__TMPL__Public/invest/images/3.jpg" alt="3"/></a>
                    </li>
                </ul>
            </div>

        </div>
    </div>
</div>
<div class="da-uesr">
    <div id="da-logon">
        <div class="container">
            <div class="logo" style="display:none;">
                <h3 class="pull-left"><b>登录</b></h3>


                <p class="pull-right logo-zc">没有壹高帐号？<a class="ljzc">立即注册</a></p>
                <div class="clearfix"></div>
                <div class="demobox">

                    <form action="js/test.json" method="post" class="bl-form bl-formhor" id="jsForm">
                        <ul>
                            <li class="bl-form-group">

                                <div class="controls c-dengle">
                                    <input type="text" value="" name="3" class="fn-tinput" placeholder="请填写手机号码" required data-rule-mobile="true" data-msg-required="请输入手机号" data-msg-mobile="请输入正确格式" />
                                </div>
                            </li>
                            <li class="bl-form-group">

                                <div class="controls c-password">
                                    <input class="fn-tinput" type="password" name="password" value="" placeholder="新密码" required id="password" data-rule-remote="php.php">
                                </div>
                            </li>
                            <li class="bl-form-group bl-form-text">

                                <div class="controls c-rember">
                                    <p class="pull-left yollew"><label><input name="checkbox1" type="checkbox" value="" required>记住我</label></p>
                                    <p class="pull-right"><a href="#">忘记密码?</a></p>

                                </div>
                            </li>


                            <li class="bl-form-group bl-form-btns">
                                <div class="controls" id="denglu">
                                    <button class="fn-btn btn-primary btn-submit submitBtn" class="c-denglu" type="submit">登录</button>
                                </div>
                            </li>
                        </ul>
                    </form>
                </div>


            </div>
            <!--注册-->
            <div class="registered" style="display:none;">
                <h3 class="pull-left"><b>注册</b></h3>
                <p class="pull-right logo-zc">已有壹高帐号？<a href="#" class="zjdl">直接登录</a></p>
                <div class="clearfix"></div>
                <div class="c-zhuce">
                    <form action="js/test.json" method="post" class="bl-form bl-formhor" id="jsForm">
                        <ul>

                            <li class="bl-form-group">

                                <div class="controls">
                                    <input type="text" value="" name="0" placeholder="名称" class="fn-tinput"  required data-msg-required="不能为空" data-rule-gt="true" data-gt="0"/>
                                </div>
                            </li>

                            <li class="bl-form-group">

                                <div class="controls">
                                    <ul class="ulist">
                                        <li class="group">

                                            <div class="controls">
                                                <input type="text" id="phone" class="txt" placeholder="请填写手机号码">

                                            </div>



                                        </li>
                                        <li><input type="text" id="code" class="txt">
                                            <button class="btn btn-small get-code" onclick="getCode(this)" id="J_getCode">获取验证码</button>
                                            <button class="btn btn-small reset-code" id="J_resetCode" style="display:none;"><span id="J_second">60</span>秒后重发</button></li>
                                    </ul>

                                </div>
                            </li>


                            <li class="bl-form-group">

                                <div class="controls">
                                    <input class="fn-tinput" type="password" name="password"  placeholder="确认密码" required id="password" data-rule-remote="php.php">
                                </div>

                            </li>

                            <li class="bl-form-group bl-form-text">

                                <div class="controls">
                                    <p class="yollew text-left"><input name="checkbox1" type="checkbox" required>注册成功后，代表您同意我们的<span>服务条款</span></p>
                                </div>
                            </li>
                            <li class="bl-form-group bl-form-btns">

                                <div class="controls">
                                    <button class="fn-btn btn-primary btn-submit submitBtn" type="submit">注册</button>

                                </div>
                            </li>
                        </ul>
                    </form></div>
            </div>
        </div>
    </div>
</div>
<!--内容-->
<div class="container warp">
    <div class="row side-da">
        <!--第二块-->
        <div class="er-box-list">
            <h1 class="text-center">天天开讲</h1>
            <h4 class="text-center">每日（19：00-21：00）</h4>
            <div class="er-box-p">
                <p class="pull-left">分析未来行情趋势</p>
                <p class="pull-right">梳理一周交易思路</p>

            </div>
            <div class="er-box-p">
                <p class="pull-left">分析未来行情趋势</p>
                <p class="pull-right">梳理一周交易思路</p>

            </div>

            <div class="er-guanjun">
                <p class="text-center">冠军高手主讲     天天有“料”到</p>
            </div>

            <div class="er-table">
                <table class="table table-bordered">

                    <thead>
                    <tr>
                        <th>开课时间</th>
                        <th>主讲内容</th>
                        <th>本期讲师</th>
                        <th>报名状态</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>星期一</td>
                        <td>股市一周展望</td>
                        <td>闻风</td>
                        <td>已满</td>
                    </tr>
                    <tr>
                        <td>星期二</td>
                        <td>股市一周展望</td>
                        <td>伊友/孔千予</td>
                        <td>已满</td>
                    </tr>
                    <tr>
                        <td>星期三</td>
                        <td>外盘看点</td>
                        <td>孔千予</td>
                        <td class="td-blue"><a href="#">我要报名</a></td>
                    </tr>
                    <tr>
                        <td>星期四</td>
                        <td>VIP学员分享</td>
                        <td></td>
                        <td>已满</td>
                    </tr>
                    <tr>
                        <td>星期五</td>
                        <td>期市一周评论</td>
                        <td>牟永锡/郭胜群</td>
                        <td class="td-blue"><a href="#">我要报名</a></td>
                    </tr>
                    <tr>
                        <td>星期六</td>
                        <td>期市一周评论</td>
                        <td>伊友</td>
                        <td class="td-blue"><a href="#">我要报名</a></td>
                    </tr>
                    <tr>
                        <td>星期天</td>
                        <td>投资理财讲堂</td>
                        <td></td>
                        <td class="td-blue"><a href="#">我要报名</a></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="clearfix"></div>
            <!--第三块-->
            <div class="side-da-er">
                <div class="side-h3">
                    <p class="pull-left grey"><span><strong>金融学吧</strong></span></p>
                    <p class="pull-right p-a-right">
                        <!--<a href="#"><i class="glyphicon glyphicon-refresh"></i>换一换</a><span>|</span>-->
                        <a href="#" class="grey">查看更多</a>
                    </p>
                </div>
                <div class="san">
                    <foreach name="course" item="vo">
                        <div class="col-md-3 col-sm-6 col-xs-12 san-box">
                            <div class="thumbnail no-xian san-content">
                                <php>$smeta=json_decode($vo['smeta'],true);</php>
                                <if condition="$smeta['thumb']">
                                    <img style="" src="{:sp_get_asset_upload_path($smeta['thumb'])}" alt="通用的占位符缩略图">
                                    <else />
                                    <img src="__TMPL__Public/invest/images/a2.jpg" alt="通用的占位符缩略图">
                                </if>
                                <div class="caption s-box-b">
                                    <p class="san-p">{$vo.signature}</p>
                                    <p>
                                        <a href="#" class=" green"><if condition="$vo['shop_price'] eq 0">免费<else /><a href="#" class="red">￥{$vo.shop_price}</a></if></a>
                                    </p>
                                    <div>
                                        <p class="pull-left"><a href="#" class=" pull-right grey"> {$vo.teaname}</a></p>
                                        <p class="pull-right"><a href="#" class=" pull-right grey"> {$vo.number}人次学习</a></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </foreach>
                </div>
            </div>
            <div class="clearfix"></div>
            <!--第四块-->
            <div class="side-da-er">
                <div class="side-h3 side-wu">
                    <div id="nav-menu">
                        <ul class="nav nav-tabs" id="nav">
                            <php>$classify = I('param.classify');</php>
                            <li <if condition="$classify eq 2"> class="active" </if> ><a href="{:U('Invest/Index/index',array('classify'=>2))}#home-ke" class="grey" >高级精品课</a></li>
                            <li <if condition="$classify eq 1"> class="active" </if> ><a href="{:U('Invest/Index/index',array('classify'=>1))}#home-ke">精英游学班</a></li>
                        </ul>
                    </div>
                </div>
                <div class="tab-content">
                    <div id="home-ke" class="tab-pane fade in active">
                        <div class="row c-box cur">
                            <div class="san si">
                                <div class="row">
                                    <foreach name="activity" item="vo">
                                        <php>$smeta=json_decode($vo['smeta'],true);</php>
                                        <div class="col-md-4 col-sm-4 col-xs-12 si-box">
                                            <div class="thumbnail san-content si-content">
                                                <if condition="$smeta['thumb']">
                                                    <img style="" src="{:sp_get_asset_upload_path($smeta['thumb'])}" alt="通用的占位符缩略图">
                                                    <else />
                                                    <img src="__TMPL__Public/invest/images/a2.jpg" alt="通用的占位符缩略图">
                                                </if>

                                                <div class="caption s-box-b si-box-b">
                                                    <p class="si-p">{$vo.name}</p>
                                                    <div class="pull-left si-time">
                                                        <p><span class="grey"><i class="glyphicon glyphicon-time"></i>{:date('Y-m-d',$vo['act_start_time'])}至{:date('Y-m-d',$vo['act_end_time'])}</span></p>
                                                        <p><span class="grey"><i class="glyphicon glyphicon-map-marker"></i>{$vo.address}</span></p>
                                                    </div>
                                                    <p class="pull-right entered"><a href="#">我要报名</a></p>

                                                </div>
                                            </div>
                                        </div>
                                    </foreach>
                                </div>
                            </div>


                        </div>
                    </div>

                    <!--<div id="menu1" class="tab-pane fade">
                        <div class="cur">
                            <div class="row c-box cur">
                                <div class="san si">
                                    <div class="col-md-4 col-sm-4 col-xs-12 si-box">
                                        <div class="thumbnail san-content si-content">
                                            <img src="__TMPL__Public/invest/images/a3.jpg" alt="通用的占位符缩略图">
                                            <div class="caption s-box-b si-box-b">
                                                <p class="si-p">线下活动报名|如果分析对数据的起敬：聚焦用户，看你如何“撩”动TA</p>
                                                <div class="pull-left si-time">
                                                    <p><span class="grey"><i class="glyphicon glyphicon-time"></i>2015-09-14 20:30-21:30</span></p>
                                                    <p><span class="grey"><i class="glyphicon glyphicon-map-marker"></i>广州</span></p>
                                                </div>
                                                <p class="pull-right entered"><a href="#">我要报名</a></p>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-4 col-sm-4 col-xs-12 si-box">
                                        <div class="thumbnail san-content si-content">
                                            <img src="__TMPL__Public/invest/images/a3.jpg" alt="通用的占位符缩略图">
                                            <div class="caption s-box-b si-box-b">
                                                <p class="si-p">线下活动报名|如果分析对数据的起敬：聚焦用户，看你如何“撩”动TA</p>
                                                <div class="pull-left si-time">
                                                    <p><span class="grey"><i class="glyphicon glyphicon-time"></i>2015-09-14 20:30-21:30</span></p>
                                                    <p><span class="grey"><i class="glyphicon glyphicon-map-marker"></i>广州</span></p>
                                                </div>
                                                <p class="pull-right entered"><a href="#">我要报名</a></p>

                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-4 col-sm-4 col-xs-12 si-box">
                                        <div class="thumbnail san-content si-content">
                                            <img src="__TMPL__Public/invest/images/a3.jpg" alt="通用的占位符缩略图">
                                            <div class="caption s-box-b si-box-b">
                                                <p class="si-p">线下活动报名|如果分析对数据的起敬：聚焦用户，看你如何“撩”动TA</p>
                                                <div class="pull-left si-time">
                                                    <p><span class="grey"><i class="glyphicon glyphicon-time"></i>2015-09-14 20:30-21:30</span></p>
                                                    <p><span class="grey"><i class="glyphicon glyphicon-map-marker"></i>广州</span></p>
                                                </div>
                                                <p class="pull-right entered"><a href="#">我要报名</a></p>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>-->
                </div>
            </div>

        </div>
        <!--第五块-->
        <div class="wu-content">
            <div class="col-md-9 col-sm-12 col-xs-12 wu-left">
                <div class="side-h3 side-wu">
                    <p class="pull-left grey"><span><strong>博文</strong></span></p>
                </div>
                <div class="wu-box">
                    <php>
                        $apicer = D('Portal/Api','Service');
                        $list= $apicer->postsPagedByTermId('1','field:post_title,uid,post_content,post_hits,post_modified;limit:0,8;order:post_date desc,listorder desc;');
                        $teacheerids = array();
                        foreach ($list['posts'] as $id){
                        array_push($teacheerids,$id['uid']);
                        }
                        $teaname= M('Users')->where(array('id'=>array('in',$teacheerids)))->getField('id,user_nicename,avatar',true);
                        foreach ($list['posts'] as $key=>$value){
                        $list['posts'][$key]['teaname'] = $teaname[$value['uid']]['user_nicename'];
                        $list['posts'][$key]['avatar'] = $teaname[$value['uid']]['avatar'];
                        }

                    </php>
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="panel panel-default no-xian wu-panel">
                            <div class="panel-body wu-p-body">
                                <foreach name="list['posts']" item="vo">
                                    <div class="up-box" id="contents">
                                        <dl class="up-photo contentlist">
                                            <dd>
                                                <h2><a href="#">{$vo.post_title}</a></h2>
                                                <p class="wenzi">{$vo.post_content|msubstr=0,276}<</p>
                                                <p class="dd-p pull-left"><a href="#" class="a-img"><img src="{:sp_get_image_url($vo['avatar'])}" /></a>
                                                    <a href="#" class="name">{$vo.teaname}</a><span class="dot"></span>
                                                </p>
                                                <ul class="down-tip pull-right">
                                                    <li><span class="yollew">{$vo.post_hits}</span>阅读</li>
                                                    <li>{$vo.post_modified}</li>
                                                </ul>
                                            </dd>
                                        </dl>
                                    </div>
                                </foreach>
                            </div>
                        </div>

                    </div>
                </div>


                <div class="aa">
                    <a href="#">查看更多</a>
                </div>
            </div>
        </div>
    </div>
    </div>
    <!--第六块-->
    <div class="liu-bananer">
        <div class="container">
            <div class="liu-b-box">
                <h3 class="text-center"><strong>风险提示</strong></h3>
                <span class="text-center">TIPS</span>
                <p class="text-center">1、教练日记基于模拟炒股进行交易操作和分析，仅供教学和游戏，并不能作为您实盘操作的依据，无法确保您的账户资金不受亏损；切勿根据这款教
                    学产品来进行实盘操作，否则风险自负。；</p>
                <p class="text-center">2、金融日记为导师个人看法，不代表其壹高学堂平台建议。仅供参考，投资有风险，入市需谨慎！</p>
                <p class="text-center">3、认真看平台内容，并根据自身经济实力、投资经验和风险承受能力独立做出投资决定，承担风险和可能的损失。 股市有风险，投资需谨慎！</p>
            </div>
        </div>

    </div>
    <!--第七块footer-->
    <div class="clearfix"></div>
    <div class="footer" id="footer">
        <tc_include file="Public:footer" />
    </div>
    <div class="hei"></div>
</body>
</html>

<!--<script src="__TMPL__Public/invest/js/jquery-1.8.3.js"></script>-->
<tc_include file="Public:scripts" />
<!--<script type="text/javascript" src="__TMPL__Public/invest/js/highcharts.js"></script>-->

<!--<script src="__TMPL__Public/invest/js/bootstrap.min.js"></script>-->
<script src="__TMPL__Public/invest/js/jquery.flexslider.js"></script>

<!--<script src="__TMPL__Public/invest/js/jquery.validate.js"></script>-->
<!--<script src="__TMPL__Public/invest/js/index-a.js"></script>-->
<script>
    //幻灯片
    $(document).ready(function(){
        $('#reg-form').easyform();
    });
    $(window).load(function(){
        $('.flexslider').flexslider({
            animation: "slide",
            start: function(slider){
                $('body').removeClass('loading');
                // $('.menu').singlePageNav();
            }
        });
    });
</script>

